package com.dianmi.seckill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dianmi.seckill.entity.SeckillProduct;
import org.apache.ibatis.annotations.Param;

/**
 * @author xieqiaofu
 * @date 2021/4/2
 */
public interface ProductDao extends BaseMapper<SeckillProduct> {

    int substractStock(@Param("productId") Long productId, @Param("num") int num);
}
